package com.example.dbpage.bean;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;

/**
 * Created by zf on 2018/7/18.
 */
@Entity(tableName = "device")
public class Device {
    @PrimaryKey(autoGenerate = true)
    private Long id;
    private String carname;
    private String cartype;

    private String carbrand;

    public Device() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCarname() {
        return carname;
    }

    public void setCarname(String carname) {
        this.carname = carname;
    }

    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype;
    }

    public String getCarbrand() {
        return carbrand;
    }

    public void setCarbrand(String carbrand) {
        this.carbrand = carbrand;
    }

    @Override
    public String toString() {
        return "Device{" +
            "id=" + id +
            ", carname='" + carname + '\'' +
            '}';
    }
}
